package org.liuqm.mapper;

//import org.apache.ibatis.annotations.Select;

import org.apache.ibatis.annotations.Param;
import org.liuqm.pojo.SysUser;
import org.liuqm.pojo.vo.SysUserVo;

import java.util.List;
import java.util.Map;

public interface SysUserMapper {


    long getCount();

    List<SysUser> findAll();


    List<SysUser> findByRealName(String realName);

    List<SysUser> findByRealNameAndSex(@Param("realName") String realName, @Param("sex") Integer sex);


    List<SysUser> findByEntity(SysUser sysUser);



    List<SysUser> findByMap(Map sysUserMap);



    List<SysUserVo> findSysUserVoByRealName(String realName);


    int insertUser(SysUser sysUser);

    int updateUser(SysUser sysUser);

    int deleteUser(@Param("id") Integer id);

}
